<script setup lang="ts">
import { RouterView, useRoute } from 'vue-router'
import HeadLayout from './layout/HeadLayout.vue'

const route = useRoute()
</script>

<template>
  <div class="main">
    <HeadLayout v-if="route.meta.hiddenHeader !== true" />
    <RouterView class="container" />
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

:root {
  --header-height: 60px;
  --left-nav-width: 150px;
}
</style>

<style lang="scss" scoped>
.main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  margin-top: var(--header-height);
  flex: 1;
}
</style>
